<%@attribute name="num" type="java.lang.Integer[]" required="true" %>
<%@variable name-given="arr" variable-class="java.lang.Integer[]" scope="AT_BEGIN" %>
<%!
    public void fun(Integer[] arr,int front,int rear){
        if(front>=rear)return;
        int i=front,j=rear;
        Integer k=arr[front];
        while(i<j){
            while (i<j&&arr[j]>=k)
                j--;
            if(i<j)arr[i]=arr[j];
            while(i<j&&arr[i]<k)
                i++;
            if(i<j)arr[j]=arr[i];
        }
        arr[i]=k;
        fun(arr,front,i-1);
        fun(arr,i+1,rear);
    }
%>
<%
    Integer[] arr=new Integer[num.length];
    System.arraycopy(num,0,arr,0,arr.length);
    fun(arr,0,arr.length-1);
    jspContext.setAttribute("arr", arr);
%>